/**
 * 用户接口
 * anthor liyingqi
 *  834777203@qq.com
 */


import type * as Login from "./type"
import { request } from "@/http/axios"

/** 获取当前登陆用户详情 */
export function getUserInfoApi() {
  return request<Login.UserInfoResponseData>({
    url: "?s=ApiBusiness/userinfo",
    method: "post"
  })
}



/** 获取移动端静默登录 */
export function getUserInfoMobile(data: {
  token: string,
}) {
  return request<Login.UserInfoResponseData>({
    url: "?s=ApiBusiness/getUserInfo",
    method: "post",
    data
  })
}

